package com.ghh.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "TEST-SMS")
public interface SmsFeign {
    //发送验证码
    @GetMapping("/sms/setSmsToRedis/{phone}/{message}")
    void setSmsToRedis(@PathVariable("phone")String phone, @PathVariable("message") String message);

    //取出验证码进行校验
    @GetMapping("/sms/getSmsToRedis/{phone}")
    String getSmsToRedis(@PathVariable("phone")String phone);
}
